<?php
/**
 * 首页接口
 * @author czb
 *
 */
require(dirname(dirname(__FILE__))."/includes/initInterface.php");
require(dirname(dirname(__FILE__))."/includes/cls_marketModel.php");
$action  = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : 'initMarket';
$login  = new Market();
$login->$action();
Class Market {
	private $m;//自己的model
	private $jsonp;
	public function __construct(){
	
		$this->jsonp = new JSONP();
		//基础信息构建
		$this->m = new marketModel();
		//微信分享参数构建
	}
	public function initMarket(){
		global $_CODE;
		$result = $this->m->get_market_info();
		die($this->jsonp->JSONP($_CODE['MARKET_INITMARKET_SUCCESS'],$result));
	}
}